/**
* @Description: 全局共用less样式集合
*/

.route-page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: auto;
  .route-content {
    width: 100%;
    height: 100%;
    overflow: auto;
  }
  .card-with-title-page {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 7px 0;
    box-sizing: border-box;
  }
}

.text-title {
  height: 40px;
  width: 100%;
  font-size: 14px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  &::before {
    position: absolute;
    content: "";
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background-color: @primary-color;
  }
}

.no-data {
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  -webkit-user-select: none;
  user-select: none;
}

.tips {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

.spin {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

// 主色文字型button
.text-btn {
  color: @primary-color;
  cursor: pointer;
  height: 30px;
  line-height: 30px;
  padding-right: 15px;
  white-space: nowrap;
  &:extend(.unselect);
}

// drawer 底部按钮
.drawer-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #e9e9e9;
  background-color: #fff;
  text-align: right;
  z-index: 1;
  padding: 10px 16px;
}

// input样式的按钮
.input-div {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-variant: tabular-nums;
  list-style: none;
  font-feature-settings: "tnum";
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 4px 11px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 1.5715;
  background-color: #fff;
  background-image: none;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  transition: all 0.3s;
  &:extend(.unselect);
  cursor: pointer;
  .placeholder {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.24);
  }
}

.required {
  color: #f5222d;
  margin: 0 4px;
}
.num-input-suffix {
  line-height: 32px;
  margin-left: 10px;
}

.item-unit {
  line-height: 32px;
  margin-left: 8px;
}
// 文字不能选中
.unselect {
  -webkit-user-select: none;
  user-select: none;
}

// 主红色文字型button
.text-danger-btn {
  &:extend(.text-btn);
  color: @error-color;
}

.text-primary {
  color: @primary-color;
}

// 文字不折行
.nowrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

// 下拉添加按钮样式
.vnnodes-add {
  padding: 4px 8px;
  cursor: pointer;
  text-align: center;
  color: @primary-color;
}

// flex
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.flex-end {
  justify-content: flex-end;
}
.flex-start {
  justify-content: flex-start;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.align-start {
  align-items: flex-start;
}
.self-start {
  align-self: flex-start;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}

.size-40 {
  width: 40px;
  height: 40px;
}

.w-100p {
  width: 100%;
}

// margin
.mt-10 {
  margin-top: 10px;
}
.ml-10 {
  margin-left: 10px;
}
.mr-10 {
  margin-right: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-40 {
  margin-top: 40px;
}
.ml-2 {
  margin-left: 2px;
}
.mr-2 {
  margin-right: 2px;
}
.mlr-2 {
  &:extend(.ml-2);
  &:extend(.mr-2);
}
.mt-5 {
  margin-top: 5px;
}
.ml-5 {
  margin-left: 5px;
}
.mr-5 {
  margin-right: 5px;
}
.mt-5 {
  margin-top: 5px;
}
.mb-5 {
  margin-bottom: 5px;
}
.mb-10 {
  margin-bottom: 10px;
}

.mlr-5 {
  &:extend(.ml-5);
  &:extend(.mr-5);
}
.ml-20 {
  margin-left: 20px;
}
.mr-20 {
  margin-right: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-50 {
  margin-top: 50px;
}
.p-10 {
  padding: 10px;
}
.plr-10 {
  padding-left: 10px;
  padding-right: 10px;
}
.plr-20 {
  padding-left: 20px;
  padding-right: 20px;
}
.lh-30 {
  line-height: 30px;
  vertical-align: middle;
}
.margin-10 {
  margin: 10px;
}
.margin-20 {
  margin: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.bg-white {
  background-color: #fff;
}

.size-100p {
  width: 100%;
  height: 100%;
}

.fw-bold {
  font-weight: bold;
}

.fs-12 {
  font-size: 12px;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.pointer {
  cursor: pointer;
}

.link {
  color: @primary-color;
  cursor: pointer;
}

.text-black {
  color: #000;
}

.text-success {
  color: @success-color;
}

.text-blue,
.text-primary {
  color: @primary-color;
}

.text-error {
  color: @error-color;
}

.text-warning {
  color: @warning-color;
}
.text-success {
  color: @success-color;
}

.bg-green {
  background-color: @success-color;
}
.bg-blue {
  background-color: @primary-color;
}
.bg-pink {
  background-color: @color-pink;
}
.bg-purple {
  background-color: @color-purple;
}
.bg-orange {
  background-color: @warning-color;
}

:root {
  --tableContentSize: 14px;
  --tableTitleSize: 14px;
  --tableHeaderSize: 14px;
  --sloth-menu-active-bg: #00baf5;
  --sloth-menu-item-hover-color: #38cfff;
}

.ant-table.ant-table-bordered .ant-table-title {
  border: none;
}

.ant-table-container {
  font-size: var(--tableContentSize);
}

.ant-table-title {
  font-size: var(--tableTitleSize);
}
.ant-table-thead {
  font-size: var(--tableHeaderSize);
}

.ant-table-tbody tr:nth-child(2n of .ant-table-row) td
{
  background-color: var(--zebraColor);
}
.ant-drawer-body {
  flex-grow: initial;
}

.ant-table-sticky-scroll {
  display: none;
}
